//
//  ViewController.swift
//  BoostTestIOS
//
//  Created by jufu on 2025/7/11.
//

import UIKit
import flutter_boost

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .white
        // Do any additional setup after loading the view.
        
        let button = UIButton(type: .custom)
        button.addTarget(self, action: #selector(showFlutter), for: .touchUpInside)
        button.setTitle("showFlutter", for: .normal)
        button.backgroundColor = .red
        button.frame.size = CGSize(width: 100, height: 50)
        button.center = view.center
        view.addSubview(button)
    }
    
    @objc func showFlutter() {
        
        let options = FlutterBoostRouteOptions()
        options.pageName = "rate/test/page"
        options.arguments = ["animated":true]
        FlutterBoost.instance()?.open(options)
    
    }

}


